package com.lzh.service.Impl;

import com.lzh.dao.AcountMapper;
import com.lzh.dao.BookMapper;
import com.lzh.pojo.Account;
import com.lzh.service.AccountService;

import java.util.List;

public class AccountServiceImpl implements AccountService {
    private AcountMapper acountMapper;
    public void setAcountMapper(AcountMapper acountMapper) {
        this.acountMapper = acountMapper;
    }

    @Override
    public int addAcount(Account account) {
        return acountMapper.addAcount(account);
    }

    @Override
    public int deleteAccount(int id) {
        return acountMapper.deleteAccount(id);
    }

    @Override
    public Account selectAccountByID(int id) {
        return acountMapper.selectAccountByID(id);
    }

    @Override
    public int updateAccount(Account account) {
        return acountMapper.updateAccount(account);
    }

    @Override
    public List<Account> selectAll() {
        return acountMapper.selectAll();
    }
}
